<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<HTML>
<HEAD>
<base href="<%=basePath %>">
<title>right</title>

<link href="<%=basePath %>attend/frame/images/skin.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>attend/css/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<%=basePath %>attend/js/tab.js"></script>
 <script type="text/javascript">
		function reloadGo() {
		var txtCurrentPage = document.getElementById("txtCurrentPage").value;
		var type = "^\\d+$";
		var re = new RegExp(type);
		if (txtCurrentPage.match(re) == null) {
			document.getElementById("txtCurrentPage").value="";
			alert("请输入整数!");
			return;
		}
		window.location.href = "ShowUser?pagerMethod=go&currentPage=" + txtCurrentPage;
	}
</script>
<!-- jQuery and the Poshy Tip plugin files -->
    <link rel="stylesheet" href="<%=basePath %>attend/js/poshytip/tip-skyblue/tip-skyblue.css" type="text/css" />
    <script type="text/javascript" src="<%=basePath %>attend/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<%=basePath %>attend/js/poshytip/jquery.poshytip.min.js"></script>
	<script type="text/javascript">
		//<![CDATA[
		$(function(){
			$('.demo-tip-skyblue').poshytip({
				className: 'tip-skyblue',
				bgImageFrameSize: 9,
				offsetX: 0,
				offsetY: 20
			});
		});
		//]]>
	</script>
</HEAD>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="<%=basePath %>attend/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=basePath %>attend/frame/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">用户管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=basePath %>attend/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=basePath %>attend/frame/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
<%--         内嵌代码 Start--%>
<form action="ShowUser" name="su" method="post">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td height="30">
		    <table width="100%" border="0" cellspacing="0" cellpadding="0">
		      <tr>
		        <td width="15" height="30"><img src="<%=basePath %>attend/images/tab_03.gif" width="15" height="30" /></td>
		        <td align="center" background="<%=basePath %>attend/images/tab_05.gif">姓名：<input type="text" name="username" value="${na}"/>&nbsp;
		        &nbsp;指纹编号：<input type="text" name="ssn" value="${ssn}"/>&nbsp;
		        &nbsp;<input type="submit" class="coolbg np" name="sub" value="查 询"/></td>
		      </tr>
		    </table>
	    </td>
	    <td width="14"><img src="<%=basePath %>attend/images/tab_07.gif" width="14" height="30" /></td>
	  </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="9" background="<%=basePath %>attend/images/tab_12.gif">&nbsp;</td>
	        <td bgcolor="#f3ffe3">
<%--	        内嵌Table Start--%>
	        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98">
	          <tr align="middle">
	            <td width="10%" height="26" background="<%=basePath %>attend/images/tab_14.gif">姓  名</td>
	            <td width="10%" background="<%=basePath %>attend/images/tab_14.gif">指纹编号</td>
	            <td width="14%" background="<%=basePath %>attend/images/tab_14.gif">操 作</td>
	          </tr>
	          <c:forEach items="${userlist}" var="userlist">
	          <tr align="middle" bgColor="#ffffff" onMouseOver="this.bgColor='#cccccc';" onMouseOut="this.bgColor='#ffffff';">
	            <td height="24">${userlist.name}</td>
	            <td>${userlist.badgenumber}</td>
	            <td>
		            <c:choose>
	            		<c:when test="${userlist.status==1}"><a href="UpUser?userID=${userlist.userId}"><img src="<%=basePath %>attend/images/okay.png" border="0" width="16" height="16" title="在职，点击修改！" class="demo-tip-skyblue"></a></c:when>
	            		<c:when test="${userlist.status==0}"><a href="UpRemove?userID=${userlist.userId}"><img src="<%=basePath %>attend/images/remove.png" border="0" width="16" height="16" title="离职，点击修改！" class="demo-tip-skyblue"></a></c:when>	
	            	</c:choose>
            	</td>
	          </tr>
	          </c:forEach>
	        </table>
<%--	        内嵌Table end--%>
	        </td>
	        <td width="9" background="<%=basePath %>attend/images/tab_16.gif">&nbsp;</td>
	      </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="29"><img src="<%=basePath %>attend/images/tab_20.gif" width="15" height="29" /></td>
	        <td background="<%=basePath %>attend/images/tab_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	          <tr>
	            <td width="25%" height="29" nowrap="nowrap"><span>共<font color="#FF0000">${page.totalRows}</font>条纪录，当前第<font color="#0066FF">${page.currentPage}</font>/<font color="#0066FF">${page.totalPages}</font>页，每页<font color="#FF0000">${page.pageSize}</font>条纪录</span></td>
	            <td width="75%" valign="top">
		            <div align="right">
			            <c:choose>
								    <c:when test="${page.totalRows<=page.pageSize}">
								    	<img border="0" src="<%=basePath %>attend/images/page/first_1.gif">&nbsp;<img border="0" src="<%=basePath %>attend/images/page/back_1.gif">&nbsp;&nbsp;<img border="0" src="<%=basePath %>attend/images/page/next_1.gif">&nbsp;<img border="0" src="<%=basePath %>attend/images/page/last_1.gif">&nbsp;&nbsp;<font color="#999999">转到</font><input type="text" disabled id="txtCurrentPage" size="3">页<input type="button" value="Go"/>&nbsp;&nbsp;
								    </c:when>
								    <c:when test="${page.currentPage==1}">
								    	<img border="0" src="<%=basePath %>attend/images/page/first_1.gif">&nbsp;<img border="0" src="<%=basePath %>attend/images/page/back_1.gif">&nbsp;&nbsp;<a href="ShowUser?pagerMethod=next&currentPage=${page.currentPage}&sta=${Now}"><img border="0" src="<%=basePath %>attend/images/page/next.gif"></a>&nbsp;<a href="ShowUser?pagerMethod=last"><img border="0" src="<%=basePath %>attend/images/page/last.gif"></a>&nbsp;&nbsp;转到<input type="text" title="请输入整数哦！" size="3" id="txtCurrentPage"/>页<input type="button" value="Go" onClick="reloadGo();"/>&nbsp;&nbsp;
								    </c:when>
								    <c:when test="${page.currentPage==page.totalPages}">
								    	<a href="ShowUser?pagerMethod=first"><img border="0" src="<%=basePath %>attend/images/page/first.gif"></a>&nbsp;<a href="ShowUser?pagerMethod=previous&currentPage=${page.currentPage}"><img border="0" src="<%=basePath %>attend/images/page/back.gif"></a>&nbsp;&nbsp;<img border="0" src="<%=basePath %>attend/images/page/next_1.gif">&nbsp;<img border="0" src="<%=basePath %>attend/images/page/last_1.gif">&nbsp;&nbsp;转到<input type="text" title="请输入整数哦！" size="3" id="txtCurrentPage"/>页</font><input type="button" value="Go" onClick="reloadGo();"/>&nbsp;&nbsp;
								    </c:when>
									<c:otherwise>
										<a href="ShowUser?pagerMethod=first"><img border="0" src="<%=basePath %>attend/images/page/first.gif"></a>&nbsp;<a href="ShowUser?pagerMethod=previous&currentPage=${page.currentPage}"><img border="0" src="<%=basePath %>attend/images/page/back.gif"></a>&nbsp;
										<a href="ShowUser?pagerMethod=next&currentPage=${page.currentPage}"><img border="0" src="<%=basePath %>attend/images/page/next.gif"></a>&nbsp;<a href="ShowUser?pagerMethod=last"><img border="0" src="<%=basePath %>attend/images/page/last.gif"></a>&nbsp;&nbsp;转到<input type="text" title="请输入整数哦！" size="3" id="txtCurrentPage"/>页<input type="button" value="Go" onClick="reloadGo();"/>&nbsp;&nbsp;
									</c:otherwise>
						</c:choose>
					</div>
	           </td>
	          </tr>
	        </table>
	        </td>
	        <td width="14"><img src="<%=basePath %>attend/images/tab_22.gif" width="14" height="29" /></td>
	      </tr>
	    </table></td>
	  </tr>
	</table>
	</form>
<%--	内嵌代码 end--%>
	</td>
    <td background="<%=basePath %>attend/frame/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=basePath %>attend/frame/images/buttom_bgs.gif"><img src="<%=basePath %>attend/frame/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</HTML>